mod airport;
mod application;
mod db;
mod file;
mod log;
mod net;
mod protocol;
mod service;

use application::Application;
use tracing::info;

#[tokio::main(flavor = "multi_thread", worker_threads = 4)]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    Application::init().await;

    info!("启动成功...");

    Application::run_loop().await;

    Ok(())
}
